<template>
    <div class="hello">
        <el-button @click="handleClick">确认</el-button>
        <el-button>删除</el-button>
        <el-button>结束</el-button>
        <Layout :layout.sync="demo"></Layout>
    </div>
</template>

<script>
export default {
    name: 'HelloWorld',
    props: {
        msg: String,
        layout: Object
    },
    data() {
        return {
            demo: {}
        }
    },
    methods: {
        handleClick() {
            console.log(this.layout, "this.layout")
            this.layout.type = "between"
            this.layout.children = [
                {
                    class: ['frame-header'],
                    slot: "Header"
                }
            ]
            this.demo = this.layout
            this.$emit("update:layout", this.layout)
            this.$forceUpdate()
        }
    }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
h3 {
    margin: 40px 0 0;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    display: inline-block;
    margin: 0 10px;
}

a {
    color: #42b983;
}

.hello {
    width: 400px;
}
</style>
